import Vue from 'vue'
import VueRouter from 'vue-router'

import films from './routes/films'
import cinemas from './routes/cinemas'
import news from './routes/news'
import center from './routes/center'

Vue.use(VueRouter)

// 定义路由规则表
const routes = [...films, ...cinemas, ...news, ...center]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
